﻿<navigation:Page xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"  xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"  
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
	x:Class="HotSpot.Silverlight.HSHome" 
	Title="HotSpot - Home">

    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="5*"></ColumnDefinition>
            <ColumnDefinition Width="6*"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Canvas x:Name="PODCanvas" Width="370" Height="320" Grid.Column="0"  Margin="0,25,0,0" HorizontalAlignment="Left">
            <Path Width="370" Height="320" Canvas.Left="0" Canvas.Top="0" Stretch="Fill"
	                Data="F1 M 565.296,81.6096L 1135.1,81.6096C 1151.67,81.6096 1165.1,95.0411 1165.1,111.609L 1165.1,595.362C 1165.1,611.93 1151.67,625.362 1135.1,625.362L 565.296,625.362C 548.727,625.362 535.296,611.93 535.296,595.362L 535.296,111.609C 535.296,95.0411 548.727,81.6096 565.296,81.6096 Z ">
                <Path.Fill>
                    <SolidColorBrush Color="#B34D4139" Opacity="0.800000011920929"/>
                </Path.Fill>
            </Path>
            <TextBlock Canvas.Top="25" Canvas.Left="200" Text="Picture of the day" Style="{StaticResource BoxTitleStyle}"></TextBlock>

            <controlsToolkit:Viewbox Width="310" Canvas.Left="25" Canvas.Top="10">
                <dataInput:Label Style="{StaticResource Ribbons}" />
            </controlsToolkit:Viewbox>


            <Grid x:Name="pict" Canvas.Top="80" Width="370"  Height="220">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition  Width="Auto"></ColumnDefinition>
                    <ColumnDefinition  Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Border HorizontalAlignment="Center" Width="Auto" Grid.Column="1" Canvas.Top="80"  Background="#FF595959">
                    <Image Name="PicOD"  Height="220" Margin="4" HorizontalAlignment="Center"></Image>
                </Border>
            </Grid>


        </Canvas>


        <StackPanel x:Name="HomeRightLinks" Grid.Column="1">
            <StackPanel x:Name="TitleLocations" Orientation="Horizontal">
                <controlsToolkit:Viewbox Width="25">
                    <dataInput:Label Style="{StaticResource StripGlobe}" />
                </controlsToolkit:Viewbox>
                <TextBlock Text="Top destinations" Style="{StaticResource TopTitleStyle}" Margin="20,0,0,0"></TextBlock>

            </StackPanel>
            <Grid x:Name="Locations" Margin="20">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition></RowDefinition>
                    <RowDefinition></RowDefinition>
                    <RowDefinition></RowDefinition>
                </Grid.RowDefinitions>

                <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="Berlin" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>
                <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="Paris" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>
                <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="New York" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="Sydney" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="Budapest" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="2" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="Prague" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>
                <StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="Timisoara" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>
                <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="London" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>
                <StackPanel Grid.Row="2" Grid.Column="2" Orientation="Horizontal">
                    <dataInput:Label Style="{StaticResource Bullet}" />                    <HyperlinkButton Content="Moscow" Style="{StaticResource LinkDestination}"></HyperlinkButton>
                </StackPanel>

            </Grid>
            <StackPanel x:Name="TitleHotels" Orientation="Horizontal">
                <controlsToolkit:Viewbox Width="25">
                    <dataInput:Label Style="{StaticResource StripGlobe}" />
                </controlsToolkit:Viewbox>
                <TextBlock Text="Top hotels" Style="{StaticResource TopTitleStyle}" Margin="20,10,0,0"></TextBlock>

            </StackPanel>
            <ListBox x:Name="TopHotelList" Background="Transparent" Margin="15" BorderBrush="{x:Null}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" Margin="4">
                            <dataInput:Label Style="{StaticResource Bullet}" Width="16" />
                            <TextBlock Text="{Binding Name}" MinWidth="180" Style="{StaticResource HotelListData}"></TextBlock>                            
                            <TextBlock Text="{Binding Address.Town.Name}" MinWidth="140" Style="{StaticResource HotelListData}"></TextBlock>    
                            <TextBlock Text="Stars: " Style="{StaticResource HotelListStarLabel}" Width="50"></TextBlock>
                            <TextBlock Text="{Binding Stars}" Style="{StaticResource HotelListStars}"></TextBlock>
                        </StackPanel>
                    </DataTemplate>

                </ListBox.ItemTemplate>
            </ListBox>
        </StackPanel>

    </Grid>
</navigation:Page>